/*
 * @Author: cgl
 * @Date: 2023-04-20 11:32:49
 * @LastEditors: cgl
 * @LastEditTime: 2023-05-22 17:24:29
 * @FilePath: \public-health-emergencies-fed:\radiation-hygiene-fe\src\api\person\entrustOrganization.js
 * @Description:
 *
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved.
 */
import request from '@/utils/request'

// 查询委托单位分页列表
export function entrustOrganizationList(data) {
  return request({
    url: '/basic/entrust/organization/list',
    method: 'post',
    data,
  })
}
// 查询委托单位列表
export function entrustOrganizationListing(params) {
  return request({
    url: '/basic/entrust/organization/listing',
    method: 'get',
    params,
  })
}
// 查询委托单位列表2
export function entrustOrganizationListing2(data) {
  return request({
    url: '/basic/entrust/organization/listPreload',
    method: 'post',
    data: data,
  })
}
// 导出委托单位列表
export function entrustOrganizationExport(data) {
  return request({
    url: `/basic/entrust/organization/export`,
    method: "post",
    data,
  });
}
// 获取委托单位详细信息
export function entrustOrganizationDetail(entrustOrganizationId) {
  return request({
    url: '/basic/entrust/organization/getInfo/' + entrustOrganizationId,
    method: 'get'
  })
}
// 下载模板
export function downloadTemplate(data) {
  return request({
    url: `/basic/entrust/organization/downloadTemplate`,
    method: "post",
    data,
  });
}
// 新增委托单位
export function entrustOrganizationAdd(data) {
  return request({
    url: `/basic/entrust/organization/add`,
    method: "post",
    data,
  });
}
// 导入数据
export function importData(data) {
  return request({
    url: `/basic/entrust/organization/importData`,
    method: "post",
    data,
  });
}
// 修改委托单位
export function entrustOrganizationEdit(data) {
  return request({
    url: '/basic/entrust/organization/edit',
    method: 'post',
    data,
  })
}
// 删除委托单位
export function entrustOrganizationDelete(entrustOrganizationIds) {
  return request({
    url: '/basic/entrust/organization/remove/' + entrustOrganizationIds,
    method: 'get'
  })
}
// 获取单位编号
export function getUnitNumber(params) {
  return request({
    url: '/basic/entrust/organization/getUnitNumber',
    method: 'get',
    params
  })
}

// 删除单位信息
export function removeCompanyInfo(id) {
  return request({
    url: `/basic/entrust/organization/remove/${id}`,
    method: 'get'
  })
}

// 删除单位信息
export function addressResolution(params) {
  return request({
    url: `/basic/entrust/organization/addressResolution`,
    method: 'get',
    params
  })
}

// 模糊搜索企查查
export function fuzzySearch(params) {
  return request({
    url: `/qcc/fuzzySearch`,
    method: 'get',
    params
  })
}
